import Vue from 'vue'
import Router from 'vue-router'
import index from 'components/index'
import allClass from 'components/allClass'
import about from 'components/about'
import downLoad from 'components/downLoad'
import search from 'components/search'
import detial from 'components/itemDetial'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/index'
    },
    {
      path: '/index',
      component: index
    },
    {
      path: '/allClass',
      component: allClass
    },
    {
      path: '/about',
      component: about
    },
    {
      path: '/downLoad',
      component: downLoad
    },
    {
      path: '/search',
      component: search
    },
    {
      path: '/detial',
      component: detial
    }
  ]
})
